package com.sxjh.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("it_intrude_log")
@ApiModel(value = "Intrude对象", description = "人员闯入表")
public class Intrude implements Serializable {
    @ApiModelProperty(value = "唯一ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "创建时间", required = true)
    @TableField(value = "created_at")
    private LocalDateTime createdAt;

    @ApiModelProperty(value = "开锁地点", required = true)
    @TableField(value = "addr")
    private String addr;

    @ApiModelProperty(value = "图片地址", required = true)
    @TableField(value = "img1")
    private String img1;

    @ApiModelProperty(value = "外部图片地址", required = true)
    @TableField(value = "img2")
    private String img2;

    @ApiModelProperty(value = "是否已读:1,已读;2未读")
    @TableField(value = "readed")
    private Integer readed;

    @ApiModelProperty(value = "是否推送, 1：是, 2：否")
    @TableField(value = "is_push")
    private Integer isPush;
}
